<?php
if(isset($show_links) && !empty ($show_links)){
    $url = $this->Html->getLink(CURRENT_MODULE);
    echo "<a href='$url'>".ucfirst(CURRENT_MODULE)."</a>";
    if(!empty($item) && array_key_exists('cod_categoria', $item)){
        $temp = $item['cod_categoria'];
        $k = array_keys($temp);
        $k = array_shift($k);
        $n = array_shift($temp);
        $url = $this->Html->getLink(CURRENT_MODULE."/categoria/show/$k/". GetPlainName($n));
        echo " > <a href='$url'>$n</a>";
    }
}

if(isset($title)){echo "<h1>$title</h1>";}
if(!empty($item)){
    $this->LoadComponent($component, "comp");
    $this->comp->$comp_action($component, $item);
}else{
    echo "<h1>Nenhum conteúdo encontrado</h1>";
    echo "<p>Não existe nenhum conteúdo relacionado nesta seção</p>";
}
?>